﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _生成随机数据
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("dxper.net".Substring(3).Replace(".", "").ToUpper());
            //Console.WriteLine(DateTime.Now.ToString("yyyyM"));
            //Console.WriteLine(DateTime.Now.AddMonths(9).ToString("yyM"));

            //string str = "AAAAAAAAAAAAAAAAAAAAA";
            //List<Char> list = str.ToList();
            //List<int> IntList = list.Select(x => Convert.ToInt32(x)).ToList();

            string date = "20181010";
            DateTime dt2 = DateTime.Now;
            bool res = DateTime.TryParseExact(date, "yyyyMMdd", CultureInfo.CreateSpecificCulture("zh-CN"), System.Globalization.DateTimeStyles.None, out dt2);
            Console.WriteLine(dt2);
            Console.ReadKey();
        }
    }

    public class DomeView
    {
        public int Id { get; set; }
        public int Name { get; set; }

    }
}
